Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java wrapper Encoder wrong length #1104

Merged
merged 2 commits into from
Jan 3, 2024

Conversation

hyperxpro
Copy link
Contributor

Problem:

Currently, the Java wrapper Encoder is passing byte array length for finishing the encoding of data. This is ideal when the encoder is used with offset 0 and full length is passed but for cases where offset is passed and length is also specified, it leads to encoded data corruption.

Changes:
Instead of passing byte array length to the push method, we will now pass length directly.

@hyperxpro
Copy link
Contributor Author

@eustas PTAL

@eustas
Copy link
Collaborator

eustas commented Dec 28, 2023

Looking into

@eustas
Copy link
Collaborator

eustas commented Dec 28, 2023

Indeed! Let me create a testcase for that first (likely will be ready tomorrow).

@copybara-service copybara-service bot merged commit 0ef82f0 into google:master Jan 3, 2024
59 of 69 checks passed
@hyperxpro hyperxpro deleted the encode-fix branch January 3, 2024 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants